package com.itheima.service.mongo;

import com.itheima.domain.mongo.Video;
import com.itheima.domain.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface VideoService {
    //根据用户的id查询推荐的小视频
    PageBeanVo findVideoByUserId(Integer pageNumber, Integer pageSize, Long loginUserId);

    //保存视频
    ObjectId saveVideo(Video video);

    //根据视频id查询视频
    Video findByVideoId(String videoId);

    //分页查询视频下的评论列表
    PageBeanVo findVideoComment(Integer pageNum, Integer pageSize, String videoId);

    //分页查询视频列表
    PageBeanVo findVideoByUid(Integer pageNumber, Integer pageSize, Long uid);
}
